package org.example.bean;

import java.util.ArrayList;
import java.util.List;

public class TeamBean {
    private int TeamId;
    private String TeamName;
    private List<PlayerBean> player = new ArrayList<>();


    public TeamBean() {
    }

    public TeamBean(String teamName, List<PlayerBean> player) {
        TeamName = teamName;
        this.player = player;
    }

    public int getTeamId() {
        return TeamId;
    }

    public void setTeamId(int teamId) {
        TeamId = teamId;
    }


    public String getTeamName() {
        return TeamName;
    }

    public void setTeamName(String teamName) {
        TeamName = teamName;
    }

    public List<PlayerBean> getPlayer() {
        return player;
    }

    public void setPlayer(List<PlayerBean> player) {
        this.player = player;
    }

    @Override
    public String toString() {
        return "TeamBean{" +
                "TeamId=" + TeamId +
                ", TeamName='" + TeamName + '\'' +
                ", player=" + player +
                '}';
    }
}
